-----------------------------------
-- Area: Kuftal Tunnel (173)
-- NM: Phantom Worm
-- @zone 173
-- @pos 76.943 29.916 118.854
-- Note: Spawned by trading a
-- Darksteel Ore to the ??? that
-- moves every 5 seconds between
-- various places at (I-6), (I-7),
-- (H-6), (H-7) on the second map
-- from the Cape Teriggan entrance.
-----------------------------------

-----------------------------------
-- onMobDeath
-----------------------------------

function onMobDeath(mob,killer)	

	local npc = GetNPCByID(17490250);

	npc:hideNPC(900);

	local randpos = math.random(1,16);

	switch (randpos): caseof
	{
	[1] = function (x) npc:setPos(75.943,29.969,118.854); end, 
    [2] = function (x) npc:setPos(75.758,30.000,125.815); end,
    [3] = function (x) npc:setPos(65.222,29.364,131.645); end,
    [4] = function (x) npc:setPos(53.088,25.033,138.725); end,
    [5] = function (x) npc:setPos(85.658,30.155,123.941); end,
    [6] = function (x) npc:setPos(91.153,30.146,113.657); end,
    [7] = function (x) npc:setPos(86.549,29.875,107.232); end,
    [8] = function (x) npc:setPos(94.763,29.054,105.138); end,
    [9] = function (x) npc:setPos(102.719,26.751,102.816); end,
    [10] = function (x) npc:setPos(71.571,30.241,110.704); end,
    [11] = function (x) npc:setPos(65.642,28.018,99.2442); end,
    [12] = function (x) npc:setPos(62.090,25.421,93.4702); end,
    [13] = function (x) npc:setPos(60.740,22.638,86.1781); end,
    [14] = function (x) npc:setPos(80.460,30.293,112.721); end,
    [15] = function (x) npc:setPos(76.929,30.050,127.630); end,
    [16] = function (x) npc:setPos(68.810,30.175,123.516); end,
	}

end;
